<div class="opt m_b15 t_14">我的技能</div>
<ul id="tag_list" class="space_ul m_b10">
	<volist name="user_tag" id="vo">
		<li><a href="javascript:;">&gt; {$vo.tag_name}({$vo.total})</a></li>
	</volist>
</ul>
<div class=" m_b40">
	<input id="tag_name" name="tag_name" type="text" class="space_input bor fl m_r10">
	<a class="icon_jh di fl" href="javascript:;" onclick="addTag();"></a>
	<div class="clear"></div>
</div>
<script>
//添加标签
function addTag(){
	var tag_name = $('#tag_name').val();
	if(tag_name.length == 0) {
		ui.error('技能不能为空');
        return false;
    }
	$.getJSON("{:U('public/Account/addTag')}",{tag_name:tag_name},function(json){
		if( json.status == 1 ){
    		ui.success(json.info);
    		$("#tag_list").append("<li><a href='javascript:;'>&gt; "+tag_name+"(0)</a></li>");
    	}else{
    		ui.error(json.info);
    	}
	});
}
</script>
